package com.yxx.service;

import com.yxx.entityModel.vo.Result.PageResult;
import com.yxx.entityModel.vo.query.MessageQuery;
import com.yxx.entityModel.vo.request.CheckRequest;
import com.yxx.entityModel.vo.request.MessageRequest;
import com.yxx.entityModel.vo.response.MessageBackResponse;
import com.yxx.entityModel.vo.response.MessageResponse;

import java.util.List;

/**
 * @author yuxiangxun
 * @date 2025/2/4
 * @apiNote
 */
public interface MessageService  {
    /**
     * 查看留言列表
     * @return
     */
    List<MessageResponse> listMessageVO();

    /**
     * 查看后台留言列表
     * @param messageQuery
     * @return
     */
    PageResult<MessageBackResponse> messageBackList(MessageQuery messageQuery);

    /**
     * 添加留言
     * @param messageRequest
     */
    void addMessage(MessageRequest messageRequest);

    boolean removeByIds(List<Integer> messageIdList);

    /**
     * 审核留言
     * @param checkRequest
     */
    void updateMessageCheck(CheckRequest checkRequest);
}
